# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-msldap
_pkgname=${pkgname#python-}
pkgver=0.5.14
pkgrel=1
pkgdesc='Python library to play with MS LDAP.'
arch=('any')
url='https://github.com/skelsec/msldap'
license=('MIT')
depends=('python' 'python-unicrypto' 'python-asyauth' 'python-asysocks'
         'python-asn1crypto' 'python-winacl' 'python-prompt_toolkit'
         'python-tqdm' 'python-wcwidth' 'python-tabulate')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('cbc7cd5e2d3a6263facbeff6f86834670ec5fa5f37dbeb7bcdc44c4c30ac735993e36a564317d2e646e76187336c62d876f470fef66e6ed3d8120f36982bfeec')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

